//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   FACT
// AUTHOR           :   William Xu
// DATE CREATE      :   2007/08/01
// DESCRIPTION      :   a COMMON UTIL file for the function, FACT
//                  :
//                  :
//                  :
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/08/01   William Xu      1.0                 source is generated.
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

package com.erp.app.common.attachment.bizlogic;

import java.sql.Connection;

import com.erp.app.common.ProjectConstants;
import com.erp.app.common.util.DocumentNumberGenerator;
import com.erp.framework.exceptions.CreateRecordException;

public class AttachmentBaseCommonUtil {

	public String generateAttachLineNo(String companyCode, String userCode, Connection conn) throws CreateRecordException {
		DocumentNumberGenerator dng = new DocumentNumberGenerator(companyCode,
				ProjectConstants.DOC_GENERIC_ATTACHMENT, "LINE_NO",
				DocumentNumberGenerator.YEAR_IGNORED, userCode, "LINE_NO", conn);		
		return dng.getSequence(5);
	}

}
